package cn.javaxc.mvcwork.framework.beans;
import cn.javaxc.mvcwork.modules.admin.User;
import cn.javaxc.mvcwork.modules.login.UserBean;
import cn.javaxc.mvcwork.util.common.*;
import java.lang.reflect.Method;
import java.sql.Timestamp;
import java.text.DateFormat;
import java.util.*;
import javax.servlet.http.HttpServletRequest;



import java.io.Serializable;
public class TFormBean implements Serializable{ 
  protected HashMap formErrors = new HashMap();
  protected HashMap formWarnings = new HashMap();

  private String message = "";
  private boolean displayMessage = false;

  
  public void setMessage(String value) {
    message = value;
  }

  
  public String getMessage() {

    return message;
  }


  
  public HashMap getFormErrors() {
    return formErrors;
  }


  
  public boolean hasErrors() {
    return (formErrors.size() > 0);
  }


  
  public HashMap getFormWarnings() {
    return formWarnings;
  }


  
  public boolean hasWarnings() {
    return (formWarnings.size() > 0);
  }

}
